package com.kobeliu.resource;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;

@Component
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties(prefix = "wxpay")
@PropertySource("classpath:wxpay.properties")
public class WxPayResource {

    private String qrcodeKey;
    private long qrcodeExpire;

    private String appId;
    private String merchantId;
    private String secretKey;

    private String spbillCreateIp;
    private String notifyUrl;

    private String tradeType;
    private String placeOrderUrl;
}
